FROM anapsix/alpine-java:8_server-jre_unlimited

MAINTAINER swen

ENV TZ=Asia/Shanghai

RUN ln -sf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

RUN mkdir -p /server

WORKDIR /server

# 声明需要暴露的端口
EXPOSE 8090
# 配置参数
ENV JAVA_OPTS ""

ADD target/server.jar ./

ENTRYPOINT ["sh", "-c", "java $JAVA_OPTS -Djava.security.egd=file:/dev/./urandom -jar server.jar"]
